package org.example;

import feign.Feign;
import feign.Request;
import feign.Retryer;


public class Main {
    public static void main(String[] args) {
        // 可以指定encoder 和 decoder,这里没有指定
        RemoteService remoteService = Feign.builder().options(new Request.Options(1000, 3500)).retryer(new Retryer.Default(5000, 5000, 3)).target(RemoteService.class, "http://localhost:8084");
        String retStr = remoteService.queryOrder();
        System.out.println(retStr);
    }
}